import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'

//防抖与节流----防止用户发神经点出bug
import _ from 'lodash'
Vue.prototype._ = _

// 引入echarts----图表
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
//图表中某些烦人的小警告 PS:Element ui和echartsm，你们两个库调preventDefault为什么要报警告给我看???
// npm i default-passive-events -S
import 'default-passive-events'   //启动后，操作剪切伸缩图片时会有红色报错，不影响使用，关闭则会有警告

//引入session,cookie----保存用户数据
import VueCookies from 'vue-cookies'
import VueSession from 'vue-session'
Vue.use(VueSession)
Vue.use(VueCookies)


import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)



Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App),
  //全局事件总线，兄弟间互传数据
  beforeCreate()
  {
    Vue.prototype.$bus = this
  }
}).$mount('#app')
